package com.tpsix.controller.vm;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@ApiModel("角色参数对象")
@JsonIgnoreProperties(ignoreUnknown = true)
public class RoleVM implements Serializable {

    private static final long serialVersionUID = -6270011135303989571L;

    @ApiModelProperty(value = "角色id", required = false)
    private Integer id;

    @ApiModelProperty(value = "角色名称", required = true)
    private String roleName;

    @ApiModelProperty(value = "角色标识", required = true)
    private String roleCode;

    @ApiModelProperty(value = "角色描述")
    private String description;

    @ApiModelProperty(value = "数据权限类型", required = true)
    private int dsType;

    @ApiModelProperty(value = "数据权限范围")
    List<Integer> roleDeptIds;

}
